﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Toque</title>
</head>
<body>
     @if (ViewBag.Error == true)
        {
           <div class="alert alert-danger" role="alert">Fechas ingresadas incorrectas</div>
        }
    <form method="post" action="@Url.Action("Resumen", "Empresa")">
        <label>
            <label>Desde fecha</label>
            <input type="date" required="required" class="form-control" name="desde" />
            <label>Hasta fecha</label>
            <input type="date" required="required" class="form-control" name="hasta" />
            <button type="submit" class="btn btn-default">Aceptar</button>
        </label>
    </form>

    <table class="table table-striped">
        <thead>
            <tr>
                <th style="text-align: center">Nombre</th>
                <th style="text-align: center">Catidad de toques</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td style="text-align: center">@item.Key.Nombre</td>
                    <td style="text-align: center">@item.Count</td>
                </tr>
            }

        </tbody>
    </table>
</body>

</html>

